package com.aizuda.boot.modules.business.contractNumber.domain.entity;

import com.aizuda.boot.modules.common.constant.enums.ComponentTypeEnums;
import com.aizuda.core.bean.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author sangyirong
 * @ClassName ContractNumberRuleComponentEntity
 * @Version 1.0
 * @Date 2025/6/27 18:30
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Schema(description = "合同编号规则组件")
@TableName("contract_number_rule_component")
public class ContractNumberRuleComponentEntity extends BaseEntity {

    @Schema(description = "合同编号规则ID")
    private Long ruleId;

    @Schema(description = "组件类型")
    private ComponentTypeEnums componentType;

    @Schema(description = "组件值")
    private String componentValue;

    @Schema(description = "排序")
    private Integer sortOrder;

    @Schema(description = "是否启用")
    private Boolean isEnabled;

}
